import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntegralShopItemHelper } from "./SeqIntegralShopItemHelper";
type int = number;
//class SIntegralShopInfo
    
    export  class SIntegralShopInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SIntegralShopInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.shopType);
            arg1.writeInt(this.minPlayerLevel);
            arg1.writeInt(this.priceUnit);
            SeqIntegralShopItemHelper.write(arg1, this.items);
            arg1.writeString(this.info);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.shopType = arg1.readInt();
            this.minPlayerLevel = arg1.readInt();
            this.priceUnit = arg1.readInt();
            this.items = SeqIntegralShopItemHelper.read(arg1);
            this.info = arg1.readString();
            return;
        }

        public /* const */_type: int=594;

        public /* var */shopType: int;

        public /* var */minPlayerLevel: int;

        public /* var */priceUnit: int;

        public /* var */items: Array<any>;

        public /* var */info: string;

        public static /* var */_regist: SIntegralShopInfo;
    }

            SIntegralShopInfo._regist = new SIntegralShopInfo(true);
        